home *** CD-ROM | disk | FTP | other *** search
- Path: the-fly.zip.com.au!not-for-mail
- From: stuartm@zip.com.au (Stuart Mackinnon)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How adjust window borders?
- Date: 24 Feb 1996 03:39:59 GMT
- Organization: Very Little
- Distribution: world
- Message-ID: <4gm1af$i15@the-fly.zip.com.au>
- References: <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> <ehb.02st@draco.prima.ruhr.de>
- NNTP-Posting-Host: zipper.zip.com.au
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- In article <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> mojaveg@ridgecrest.ca.us (Everett M. Greene) writes:
- >I wish to be able to directly control the size of the window borders
- >for a window which has no border gadgets or text. The window opens
- >as desired but I would prefer to have all four borders a bit wider.
- >The implications in the RKM are that WA_InnerWidth and WA_InnerHeight
- >should have some effect on border widths, but trying these seems to
- >have no visible effect whatsoever. Any ideas?
-
- What I am about to tell you is not very system friendly!!! Be warned!!
-
- Before you open your window do something like a Forbid() (I don't think
- intuition uses interrupts in such a way to affect this, but if you
- really want you could do Disable()).
-
- Then modify the WBorTop, WBorLeft, WBorRight, WBorBottom field in the
- Screens structure. Remember the previous values before you start poking
- them.
-
- Now, open your window. Restore the previous values in the Screen's
- structure and call Permit() (or Enable()).
-
- Once the window is open, you can't modify the border sizes.
-
- This lets you adjust your window's borders, but I would recommend NOT
- doing it.
-
- Regards,
-
- Stuart MacKinnon.
- --
-
- +- Stuart MacKinnon ------------------------------------ stuartm@zip.com.au -+
- | VIC20, CBM 128+1571, A1000+Sidecar, CD32, A4000/040+A4091+A2065+RetinaZ3! |
- | Registered BeBox Developer - for those at the bleeding edge. |
- | PHONE: +61 2 398 4578 (AH) +61 2 693 0445 (BH) |
- +--- Aztec C - Use it to MANXimise code inefficiency! -----------------------+
-